package vip.ola.core.common.constant;


public interface CacheKey {

    // 缓存时间
    long HALF_HOURS = 30 * 60;
    long ONE_HOURS = 60 * 60;
    long ONE_DAY = 24 * 60 * 60;

    // 订单过期时间
    long ORDER_EXPIRE_TIME = 3 * 60;
    // 订单确认
    long ORDER_CONFIRM_LOCK_TIME = 30;

    Integer TOKEN_TIMEOUT = 60 * 60 * 6;  //设置auth_token有效期 单位：秒
    Integer APP_TOKEN_TIMEOUT = 60 * 60 * 24;
    //redis缓存放置token  key的前缀, key =  $prefix + token  value = 1
    String MGR_TOKEN = "MGR:TOKEN:";
    String AGENT_TOKEN = "AGENT:TOKEN:";
    String MCH_TOKEN = "MCH:TOKEN:";
    String CODE_TOKEN = "CODE:TOKEN:";
    String CODE_APP_TOKEN = "CODE:APP_TOKEN:";
    // 商户信息
    String MCH_INFO = "MCH:INFO:";

    String MCH_NORMAL_LIST = "MCH_NORMAL_LIST:";

    // 商户支付通道
    String MCH_PAY_PASSAGE = "MCH:PAY_PASSAGE:";
    String PAY_PASSAGE = "PAY:PASSAGE:";
    String PAY_PASSAGE_ACCOUNT = "PAY:PASSAGE_ACCOUNT:";
    String PAY_PASSAGE_ACCOUNT_LIST = "PAY:PASSAGE_ACCOUNT:LIST:";
    String AGENT_PASSAGE = "AGENT:PASSAGE:";

    // 系统配置
    String SYS_CONFIG = "SYS:CONFIG:";

    // 码商用户
    String CODE_USER = "CODE:USER:";

    String QR_CODE = "QR_CODE:";

    String ORDER_PAY = "ORDER_PAY:";

    String CLIENT_IP = "CLIENT_IP:";

    String ORDER_LOCK = "ORDER_LOCK:";

    String REMIT_LOCK = "REMIT_LOCK:";

    String CODE_BUS_TYPE = "CODE_BUS_TYPE:";


}
